package com.wsoft.excel;

import com.alibaba.excel.annotation.ExcelProperty;
import com.wsoft.annotation.ExcelFieldConvert;
import com.wsoft.constant.FieldConvertConstant;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.util.Date;

/**
 * excel 导入导出 测试类
 * @Author z001
 * @Date 2024/11/5 10:17
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ExcelTestUser {

    @ExcelProperty("姓名")
    private String name;

    @ExcelProperty(value = "出生日期")
    private Date birthday;

    @ExcelProperty(value = "出生日期1")
    private LocalDateTime birthday1;

    private Double salary;

    @ExcelFieldConvert(type = FieldConvertConstant.ORGANIZATION)
    private String organization;

    @ExcelFieldConvert(type = FieldConvertConstant.DICT,dictCode = "COLUMN_TYPE")
    private String dict;

    @ExcelFieldConvert(type = FieldConvertConstant.MEMBER)
    private String member;

    @ExcelFieldConvert(type = FieldConvertConstant.LEVEL)
    private String level;

    @ExcelFieldConvert(type = FieldConvertConstant.POST)
    private String post;

}
